import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';
import { RoleEnum } from "/@/enums/roleEnum";

const dashboard: AppRouteModule = {
  path: '/auditCenter',
  name: 'AuditCenter',
  component: LAYOUT,
  redirect: '/auditCenter/index',
  meta: {
    icon: 'ant-design:check-circle-outlined',
    title: t('审核中心'),
    orderNo: 30,
    roles: [RoleEnum.SUPER],
  },
  children: [
    {
      path: 'taskSettle',
      name: 'TaskSettle',
      component: () => import('/@/views/auditCenter/taskSettle/CaishuiTaskSettleList.vue'),
      meta: {
        title: t('任务结算审核'),
        icon: 'ant-design:schedule-outlined',
        orderNo: 1,
        roles: [RoleEnum.SUPER],
      },
    },
    {
      path: 'settleList',
      name: 'SettleList',
      component: () => import('/@/views/auditCenter/settleList/CaishuiTaskSettleListList.vue'),
      meta: {
        title: t('业务清单审核'),
        icon: 'ant-design:file-done-outlined',
        orderNo: 5,
        roles: [RoleEnum.SUPER],
      },
    },
    {
      path: 'invoicing',
      name: 'Invoicing',
      component: () => import('/@/views/auditCenter/invoicing/CaishuiBillList.vue'),
      meta: {
        title: t('在线开票审核'),
        icon: 'ant-design:cloud-outlined',
        orderNo: 10,
        roles: [RoleEnum.SUPER],
      },
    },
    {
      path: 'refund',
      name: 'Refund',
      component: () => import('/@/views/auditCenter/refund/CaishuiRefundRecordList.vue'),
      meta: {
        title: t('账户退款审核'),
        icon: 'ant-design:file-protect-outlined',
        orderNo: 15,
        roles: [RoleEnum.SUPER],
      },
    },
  ],
};

export default dashboard;
